﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class houtai_AddNew : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void tijiao_Click(object sender, EventArgs e)
    {

        string strFilePathName = loFiles.PostedFile.FileName;
        string ImgPath = loFiles.PostedFile.FileName; //获取完整路径
        string ImgName = ImgPath.Substring(ImgPath.LastIndexOf("\\") + 1);//获取文件名.后缀名
        string txttitle = txtitle.Text;
        string content = Editor.Value;
        string imageText = imageAltText.Text;
        string txtid = id.Text;
        bool txtbool =Convert.ToBoolean(txtvisible.SelectedValue);
        
        SqlNewsProvider insertnew = new SqlNewsProvider();

        insertnew.InsertNews(txtid,txtbool,txttitle,content,ImgName, imageText);

    }
    protected void quxiao_Click(object sender, EventArgs e)
    {

    }
}
